from django.urls import path
from . import views

# 正在部署的应用的名称
app_name = 'news'

urlpatterns = [
    # path函数将url映射到视图
    path('', views.new_list, name='new_list'),
    # 文章详情
    path('news-detail/<int:id>/', views.news_detail, name='news_detail'),

]
